package event.window;

import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import java.awt.event.WindowListener;
import java.awt.event.WindowStateListener;

/**
 *
 */
public class WindowEventListener implements WindowFocusListener, WindowStateListener {
    // 获得焦点
    @Override
    public void windowGainedFocus(WindowEvent e) {
        System.out.println("获得");
    }

    // 失去焦点
    @Override
    public void windowLostFocus(WindowEvent e) {
        System.out.println("失去");
    }

    // 状态改变
    @Override
    public void windowStateChanged(WindowEvent e) {
        System.out.println("状态改变");
    }
}
